/*This file recreates the tables and figures of "Between Wind and Water: Tradeoffs of Irrigation and Wind Projects"

It creates the local directories and runs over all the individual do files.

*/
clear
clear matrix
clear mata
set matsize 11000
set maxvar 15000

* set the working directory (NEED TO FILL IN THE MAIN WORKING DIRECTORY)
global path ""


*sets local file paths
global do			 		= "$path/empirics" 	 
global data			 		= "$path/data" 	 
global results 				= "$path/results" 	 
global root					= "$path" 	 

**to run ols_spatial_HAC it is necessary to run the .ado file and create some additional variables. Alter the comment in the next line to run if you need it installed
*run "$do/ado/ols_spatial_HAC.ado"


****Note: the above needs to be run to set the global paths even if .do files are run separately

*****Create Main Text Display Items*****
do "$do/Setbacks/setback_simulation.do"

do "$do/County/County_Main.do"

do "$do/PLSS/PLSS_Main.do"

do "$do/WP/WP_Main.do"


******Create Appendix Materail
do "$do/Turbines/turbine_main_appendix.do"

do "$do/County/County_Appendix.do"

do "$do/PLSS/PLSS_Appendix.do"

do "$do/WP/WP_Appendix.do"




